if goal  / 5 <= big:
    return goal % 5  <= small
  else:
    return goal - big * 5 <= small
    